package com.oauthorization.server.test;

import org.springframework.security.config.Customizer;

// 定义一个 Person 类
class Person {
    private String name;
    
    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

// 使用 Customizer 接口
public class Main {
    public static void main(String[] args) {
        // 创建一个 Person 实例
        Person person = new Person("John Doe");

        // 使用 Customizer 接口来定制 Person 实例
        Customizer<Person> personCustomizer = (p) -> {
            p.setName("Jane Doe");
        };

        // 应用定制
        personCustomizer.customize(person);

        // 输出定制后的结果
        System.out.println(Customizer.withDefaults()); // 输出 "Jane Doe"

        System.out.println("============================");
      /*  Person person = new Person("John Doe");
        T1 t1 = new T1();
        t1.customize(person);

        System.out.println(person.getName());*/

    }
}